﻿namespace Probel.NDoctor.Statistics.Console.Commands
{
    using Probel.NDoctor.Statistics.Console.Menus;
    using Probel.NDoctor.Statistics.Console.Properties;

    internal class MySqlConfigureCommand : Command
    {
        #region Methods

        protected override void SafeExecute()
        {
            var s = Settings.Default;
            Output.WriteLine("Configure MySql");
            Output.EmptyLine();
            s.Server = Output.ReadLine("Server name: ");
            s.Database = Output.ReadLine("Database   : ");
            s.User = Output.ReadLine("User name  : ");
            s.Password = Output.ReadLine("Password   : ");

            s.Save();
        }

        #endregion Methods
    }
}